
rem
rem build.bat
rem description: generates a dll 
rem

set tangoLib= C:\tango\lib\gdi32.lib
set tangoLib= %tangoLib% C:\tango\lib\kernel32.lib
set tangoLib= %tangoLib% C:\tango\lib\libbz2.lib
set tangoLib= %tangoLib% C:\tango\lib\shell32.lib
set tangoLib= %tangoLib% C:\tango\lib\snn.lib
set tangoLib= %tangoLib% C:\tango\lib\tango-base-dmd.lib
set tangoLib= %tangoLib% C:\tango\lib\tango-base-dmd-d.lib
set tangoLib= %tangoLib% C:\tango\lib\tango-user-dmd.lib
set tangoLib= %tangoLib% C:\tango\lib\tango-win32-dmd.lib
set tangoLib= %tangoLib% C:\tango\lib\user32.lib
set tangoLib= %tangoLib% C:\tango\lib\ws2_32.lib
set tangoLib= %tangoLib% C:\tango\lib\zlib.lib


set dllFiles= dll\globalVariable.def 
set dllFiles= %dllFiles% dll\Dll.d
set dllFiles= %dllFiles% dll\Exported.d
set dllFiles= %dllFiles% dll\Interface.d

set clientFiles= client\CallDLL.d 



rem
rem build the dll
rem
C:\tango\bin\dmd.exe -ofsimple.dll %dllFiles% %tangoLib%

rem 
rem create library to import into D code
rem
tools\dm\bin\implib.exe /s simple.lib simple.dll

rem
rem build the dll test client
rem
C:\tango\bin\dmd.exe -ofclient.exe %clientFiles% simple.lib %tangoLib%  

